using System;

namespace PubSub.S3.Abstract.DistributeEventBus
{
    public abstract class DistributedEventBusAbstract : EventBusAbstract, IDistributedEventBus
    {
        public IDisposable Subscribe<TEvent>(IDistributedEventHandler<TEvent> handler) where TEvent : EventDataAbstract
        {
            return Subscribe(typeof(TEvent), handler);
        }
    }
}